package com.tssf.car_manage.service.impl;

import com.tssf.car_manage.entity.Locations;
import com.tssf.car_manage.mapper.LocationMapper;
import com.tssf.car_manage.service.LocationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LocationServiceImpl implements LocationService {
    @Autowired
    LocationMapper locationMapper;
    @Override
    public void insert(Locations locations) {
        locationMapper.insert(locations);
    }

    @Override
    public Locations selectLocation() {
        return locationMapper.selectLocation();
    }

    @Override
    public int upsertLocation(Locations location) {
        return locationMapper.upsertLocation(location);
    }
}
